.page {
  padding: 20px;
  height: calc(100vh - 110px);
  overflow-y: auto;
}
.form-header {
  background-color: #fff;
  border-bottom: 1px solid #eaeaea;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  text-align: right;
  margin: 0;
  padding: 10px;
}
.form-footer {
  text-align: center;
  margin-top: 20px;
}

.form-title-wrapper {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
  margin-top: 20px;
  &:not(:has(.form-title-text-two)) {
    &::before {
      content: '';
      display: inline-block;
      width: 4px;
      height: 18px;
      background-color: #409eff;
      margin-right: 8px;
      vertical-align: middle;
    }
  }

  .form-title-text {
    font-size: 18px;
    font-weight: 650;
  }

  .btn {
    &:nth-child(2) {
      margin-left: auto;
    }
  }
}

.form-title-text-two {
  font-size: 16px;
  font-weight: 650;
}

.table-toolbar {
  margin-top: 20px;
  margin-bottom: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;

  .form-title-text {
    &::before {
      content: '';
      display: inline-block;
      width: 4px;
      height: 18px;
      background-color: #409eff;
      margin-right: 8px;
      vertical-align: middle;
    }
    font-size: 18px;
    font-weight: 650;
  }
}
.inline-edit-container {
  width: 100%;
  .editable-text-area {
    width: 100%;
    min-height: 120px;
    padding: 15px;
    border: 2px solid #dcdfe6;
    border-radius: 8px;
    background-color: #fff;
    line-height: 2;
    font-size: 14px;
    font-family: 'Microsoft YaHei', sans-serif;
    cursor: text;

    &:focus {
      outline: none;
      border-color: #409eff;
      box-shadow: 0 0 0 2px rgba(64, 158, 255, 0.2);
    }

    &.disabled {
      background-color: #f5f7fa;
      color: #c0c4cc;
      cursor: not-allowed;
    }

    .protected-input {
      width: 80px;
      height: 24px;
      line-height: 24px;
      padding: 0 8px;
      border: none;
      border-radius: 4px !important;
      background: #e9f3ff;
      color: #6183ab;
      &:focus-visible {
        outline: none;
      }
      // 隐藏数字输入框的箭头
      &::-webkit-outer-spin-button,
      &::-webkit-inner-spin-button {
        -webkit-appearance: none;
        margin: 0;
      }

      // Firefox 浏览器
      &[type='number'] {
        -moz-appearance: textfield;
      }
    }

    .text-content {
      color: #303133;
      margin: 0 2px;
    }

    .inline-input,
    .inline-select {
      border: 2px solid #dcdfe6;
      background-color: transparent;
      padding: 2px 6px;
      margin: 0 2px;
      border-radius: 3px;
      font-size: 14px;
      min-width: 40px;

      &.wider {
        min-width: 80px;
      }

      &.date-input {
        min-width: 120px;
      }

      &:focus {
        outline: none;
        background-color: #fff;
        border-color: #409eff;
        box-shadow: 0 0 0 1px rgba(64, 158, 255, 0.2);
      }

      &:disabled {
        background-color: #f5f7fa;
        color: #c0c4cc;
        cursor: not-allowed;
      }

      &::placeholder {
        color: #c0c4cc;
        font-size: 12px;
      }
    }

    .inline-select {
      &.wider {
        min-width: 120px;
      }
    }
  }
}

// 预览
.dropdownView {
  .el-dropdown-link {
    display: flex;
    align-items: center;
    .left-icon {
      margin-right: 4px;
    }
  }
}
